﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerMaster.master" AutoEventWireup="true" CodeBehind="CustomerProfile.aspx.cs" Inherits="EHTWebsiteProject.CustomerProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentView" runat="server">
    <div style="background-color:White;height:3px"></div>
        <div style="background-color:#ff6600; height:20px; padding-top:10px; width: 594px;">
        
    <h2 style="color:White">
        <asp:Label ID="lbProfile" runat="server" Text="Profil"></asp:Label>
    </h2>
    </div>
      <div class="content-center">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2" style="text-align:left;font-size:11px; height: 60px;">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessageFail" runat="server"></asp:Literal>
                    </span>
                    <span class="NotificationSuccess">
                        <asp:Literal ID="ltrMessageSuccess" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbFirstName" runat="server">Fornavn</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rFirstName" runat="server" ControlToValidate="txtFirstName"
                        CssClass="failureNotification" ErrorMessage="Fornavn er obligatorisk." ToolTip="Fornavn er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbLastName" runat="server">Etternavn</asp:Label>:
                </td>              
                <th>
                    <asp:TextBox ID="txtLastName" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rLastName" runat="server" ControlToValidate="txtLastName"
                        CssClass="failureNotification" ErrorMessage="Etternavn er obligatorisk." ToolTip="Etternavn er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbAge" runat="server">Alder</asp:Label>:
                </td>              
                <th>
                    <asp:TextBox ID="txtAge" runat="server" CssClass="textEntry"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbPhone" runat="server">Telefon</asp:Label>:
                </td>
                
                <th >
                    <asp:TextBox  ID="txtPhone" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPhone" runat="server" ControlToValidate="txtPhone"
                        CssClass="failureNotification" ErrorMessage="Telefon er obligatorisk." ToolTip="Telefon er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbFax" runat="server">Faks</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtFax" runat="server" CssClass="textEntry"></asp:TextBox>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbAddress" runat="server" >Adresse</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rAddress" runat="server" ControlToValidate="txtAddress"
                        CssClass="failureNotification" ErrorMessage="Adresse er obligatorisk." ToolTip="Adresse er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
                
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbCity" runat="server">By</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtCity" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rCity" runat="server" ControlToValidate="txtCity"
                        CssClass="failureNotification" ErrorMessage="By er obligatorisk." ToolTip="By er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
               
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbRegion" runat="server">Region</asp:Label>:
                </td>
                <th>
                    <asp:DropDownList ID="ddlRegion" runat="server" CssClass="StyleDDList">
                    </asp:DropDownList>
                </th>
              
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbZipCode" runat="server">Postnummer</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtZipCode" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rZipCode" runat="server" ControlToValidate="txtZipCode"
                        CssClass="failureNotification" ErrorMessage="Postnummer er obligatorisk." ToolTip="Postnummer er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td style="height: 37px">
                    <asp:Label ID="lbEmail" runat="server">E-post</asp:Label>:
                </td>
                <th style="height: 37px">
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry" ReadOnly="True"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rEmail" runat="server" ControlToValidate="txtEmail"
                        CssClass="failureNotification" ErrorMessage="E-post er obligatorisk." ToolTip="E-post er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationGroup="RegisterUserValidationGroup"
                        ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Send ikke gyldig"
                        ToolTip="Send ikke gyldig" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbSignature" runat="server">Signatur</asp:Label>:
                </td>
                <th>
                    
                    <asp:FileUpload ID="fuFileUrl" runat="server" CssClass="textEntry" ViewStateMode="Enabled" />
                </th>
            </tr>
            <tr>
                <td></td>
                <th> 
                    <asp:Button ID="btnSave" runat="server" Text="Lagre" 
                        ValidationGroup="RegisterUserValidationGroup" onclick="btnSave_Click" 
                        CssClass="Button" Width="84px" />
                </th>
            </tr>
        </table>
    </div>
</asp:Content>
